<template>
	<view class="user-list uni-flex animated fadeInLeft faster">
		<image :src="item.userpic" mode="widthFix" lazy-load></image>
		<view class="">
			<view class="">{{item.username}}</view>
			<view class="icon iconfont tag-sex" :class="[item.sex==0?'icon-nan':'icon-nv']">{{item.age}}</view>
		</view>
		<view class="icon iconfont" :class="[item.isguanzhu?'icon-xuanze-yixuan':'icon-zengjia1']"></view>
	</view>
	
</template>

<script>
	export default{
		props:{
			item:Object,
			index:Number
		}
	}
</script>

<style scoped>
	.uni-flex{
		display: flex;
	}
	
	.user-list{
		margin: 0 3%;
		padding: 3% 0;
		border-bottom: 1upx solid #EEEEEE;
	}
	.user-list >image{
		width: 100upx;
		height: 100upx;
		border-radius: 100%;
		margin-right: 20upx;
		flex-shrink: 0;
	}
	.user-list>view:first-of-type{
		flex: 1;
	}
	.user-list>view:first-of-type>view:first-child{
		font-size: 35upx;
	}
	.user-list>view:last-of-type{
		text-align: center;
		margin: auto;
		width: 40upx;
		color: #CCCCCC;
	}
	.icon-nv{
		background: #FF698D !important;
	}
	.tag-sex{
		background: #007AFF;
		color: #FFFFFF;
		font-size: 28upx;
		border-radius: 20upx;
		padding: 0 10upx;
		display: inline-block;
		line-height: 1.5;
	}
	.icon-zengjia1{
		color: #F8791B !important;
	}
</style>
